package com.opensns.android;

import android.content.Context;

public abstract class OpenSns {

	private OauthAccessToken mToken;
	
	public OauthAccessToken getAccessToken() {
		return mToken;
	}
	
	public void setAccessToken(OauthAccessToken value) {
		mToken = value;
	}
	
	public static void storeAccessToken(Context context, OauthAccessToken token) {
		Utility.storeAccessToken(context, token);
	}

	public interface AuthorizeCallback {

		public void onCompleted(Parameters values);
		
		public void onException(OpenSnsException e);
		
		public void onError(Exception e);
		
		public void onCanceled();
		
	}
	
	public interface RequestCallback {

		public void onComplete(String response);
		
		public void onException(OpenSnsException e);
		
		public void onError(Exception e);
	}
}
